function updateSalary() {
    let salaryId = $(".salaryId").val();
    let sname = $(".sname").val();
    let designer = $(".designer").val();
    let register = $(".register").val();
    let base = $(".base").val();
    let bonus = $(".bonus").val();
    let traffic = $(".traffic").val();
    let communication = $(".communication").val();
    let meal = $(".meal").val();
    let housing = $(".housing").val();
    let travel = $(".travel").val();
    let overtime = $(".overtime").val();
    let reasonChange = $(".reasonChange").val();
    let reviewComments = $(".reviewComments").val();

    let json = {
        salaryId: salaryId,
        sname: sname,
        designer: designer,
        register: register,
        base: base,
        bonus: bonus,
        traffic: traffic,
        communication: communication,
        meal: meal,
        housing: housing,
        travel: travel,
        overtime: overtime,
        reasonChange: reasonChange,
        reviewComments: reviewComments
    }

    $.ajaxSettings.async = false;
    $.post("/updateSalary", json, function (data) {
        if (data === true) {
            alert("修改成功！")
            location.href = "/salaryStandard"
        } else {
            alert("修改失败！")
        }
    })
    $.ajaxSettings.async = true;
}
